<template>
  <transition name="el-zoom-in-center">
    <div class="cu-preview-main">
      <div class="cu-common-page-header">
        <el-page-header @back="goBack" content="查看加盟表" />
        <div class="options">
          <el-button @click="goBack()">{{$t('common.cancelButton')}}</el-button>
        </div>
      </div>
      <el-form ref="dataForm" label-width="80px" size="mini" class="main">
        <el-form-item label-width="10px">
          <p class="content" v-html="html"></p>
        </el-form-item>
      </el-form>
    </div>
  </transition>

</template>

<script>
export default {
  data () {
    return {
      visible: false,
      html: undefined,
    }
  },
  methods: {
    goBack () {
      this.$emit('close')
    },
    init (html) { 
      this.visible = true 
      this.html = html
    }
  }

}
</script>
<style lang="scss" scoped>
.el-form {
  >>> .el-form-item {
    margin-bottom: 0;
  }
  >>> .el-divider--horizontal {
    margin: 5px 0;
  }
  .text {
    word-break: break-all;
  }
  h4.text {
    font-size: 15px;
  }
  >>> .el-upload-list__item:first-child {
    margin-top: 3px;
  }
}
</style>